package com.gsy.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 基础实体类
 */
public class BaseEntity implements Serializable {
	private static final long serialVersionUID = -7123016112208299661L;
	/*@TableId(type = IdType.ASSIGN_ID)
	protected Long id;

	@TableField(fill = FieldFill.INSERT)
	protected Timestamp createTime;

	protected String createBy;

	protected String lastModifyBy;

	@TableField(fill = FieldFill.INSERT_UPDATE)
	protected Timestamp lastModifyTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getLastModifyBy() {
		return lastModifyBy;
	}

	public void setLastModifyBy(String lastModifyBy) {
		this.lastModifyBy = lastModifyBy;
	}

	public Timestamp getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(Timestamp lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("BaseEntity [id=");
		builder.append(id);
		builder.append(", createTime=");
		builder.append(createTime);
		builder.append(", createBy=");
		builder.append(createBy);
		builder.append(", lastModifyBy=");
		builder.append(lastModifyBy);
		builder.append(", lastModifyTime=");
		builder.append(lastModifyTime);
		builder.append("]");
		return builder.toString();
	}
*/
}
